﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Asxsyd92Core.Utils.Data
{
    public interface IPageableInfo
    {
        long PageCount { get; set; }
        long PageIndex { get; set; }
    }

    public interface IPageable<T> : IPageableInfo
    {
        IEnumerable<T> Rows { get; set; }
    }

    public class Pageable<T> : IPageable<T>
    {
        public long PageCount { get; set; }

        public IEnumerable<T> Rows { get; set; }

        public long PageIndex { get; set; }
    }
}
